package top.yxqz.mybatis.resultmap.pojo;

import java.util.List;

/**
 * @author: 余小小
 * @date: 2023/3/9
 * @description：
 */
public class Dept {

    private Integer id;
    private String deptName;
    private String deptDesc;
    private List<Emp> emps;//这个是一堆的员工（一对多）


    public Dept() {
    }

    public Dept(Integer id, String deptName, String deptDesc, List<Emp> emps) {
        this.id = id;
        this.deptName = deptName;
        this.deptDesc = deptDesc;
        this.emps = emps;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return deptName
     */
    public String getDeptName() {
        return deptName;
    }

    /**
     * 设置
     * @param deptName
     */
    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    /**
     * 获取
     * @return deptDesc
     */
    public String getDeptDesc() {
        return deptDesc;
    }

    /**
     * 设置
     * @param deptDesc
     */
    public void setDeptDesc(String deptDesc) {
        this.deptDesc = deptDesc;
    }

    /**
     * 获取
     * @return emps
     */
    public List<Emp> getEmps() {
        return emps;
    }

    /**
     * 设置
     * @param emps
     */
    public void setEmps(List<Emp> emps) {
        this.emps = emps;
    }

    public String toString() {
        return "Dept{id = " + id + ", deptName = " + deptName + ", deptDesc = " + deptDesc + ", emps = " + emps + "}";
    }
}
